package com.hjm.common.api.ls.leshua;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "channel.leshua")
public class LeShuaParams {
    /** 签名秘钥 */
    private String key;
    /** 代理商编号 */
    private String agentId;
    /** 请求地址 */
    private String reqUrl;
    /** 来源 */
    private String source;

    /** 商户性质 */
    public static Map<String,Integer> merNature=new HashMap(){
        private static final long serialVersionUID = 1L;
        {
            put("0", 3);//企业
            put("1", 1);//小薇
            put("2", 2);//个体
            put("3", 1);//个体
        }
    };

    /** 结算账户类型 */
    public static Map<String,Integer> nature=new HashMap(){
        private static final long serialVersionUID = 1L;
        {
            put("1", 2);//对公
            put("2", 1);//对私
        }
    };
}
